{extend name="panel/layout" /}
{block name="main"}
<div id="main-container">
    <div id="breadcrumb">
        <ul class="breadcrumb">
            <li><i class="fa fa-home"></i><a href="/"> 首页</a></li>
            <li><i class="fa fa-desktop"></i><a href="{:url('index')}"> 控制面板</a></li>
            <li class="active">元宝兑换</li>
        </ul>
    </div><!-- /breadcrumb-->
    <div class="main-header clearfix">
        <div class="page-title">
            <h3 class="no-margin">元宝兑换</h3>
        </div><!-- /page-title -->
    </div>
    <div class="padding-md">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-info">
                    <div class="panel-heading">
                        元宝兑换
                    </div>

                    <div class="panel-body">
                        <div class="alert alert-success">
                            你当前身份是：<font color="#8b4513">{$degree}</font></span><br>你的兑换比例是：1元宝 = <font
                                color="red">{$rate}</font>元余额！

                        </div>
                        <form method="post" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-lg-3 control-label">余额</label>
                                <div class="col-lg-8">
                                    <input type="text" class="form-control" value="{$userInfo.point}元" disabled>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">剩余元宝</label>
                                <div class="col-lg-8">
                                    <input type="text" class="form-control" value="{$userInfo.coin}" disabled>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-3 control-label">兑换数量</label>
                                <div class="col-lg-8">
                                    <input type="number" name="num" placeholder="输入要兑换元宝数量" class="form-control" required>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-3 col-lg-8">
                                    <button class="btn btn-primary" type="submit">确认兑换</button>
                                    <button class="btn btn-default-outline" type="reset">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
